<?php
// +----------------------------------------------------------------------
// | EtrolPHP [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Author: LJQ <245369209@qq.com> 
// +----------------------------------------------------------------------

namespace app\basic\model;
use app\common\model\Base;

/**
 * 监控设备
 */
class Detection extends Base{

	protected $name = "securitycamera";
	protected $createTime = 'createTime';
	protected $updateTime = 'updateTime';

	public function enterprise(){

	    return $this->hasOne('enterprise','id','enterpriseId');
	}
	
	public function dangerSource(){
		return $this->hasOne('danger','id','dangerSourceId');
	}
}